<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/layout/templatePersonaAdministrada.xhtml">
	<style type="text/css">
<!--
body {
	background-color: #858585;
	margin-top: 1cm;
}

.Estilo1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 20px;
	color: #999999;
}

.Formar {
	width: 100%;
	height: 100%;
}
-->
</style>

	<ui:define name="body">
		<h:form id="form">

		<p:panel id="tipoDoc" header="Documento: ">
			<h:panelGrid columns="8" cellspacing="6">
				<h:outputText value="Tipo de documento:" />
				<h:selectOneListbox value="#{documentosBM.idComboTipDocInt}"
					id="tipoDocCD" size="1">
					<f:selectItem itemLabel="---Seleccione un Documento----"
						itemValue="-1" />
					<f:selectItems value="#{documentosBM.tipoExp}" />
					<p:ajax update="outCodDocCD" process="tipoDocCD" event="change"
						actionListener="#{documentosBM.ChangedKindDocument}" />
				</h:selectOneListbox>

				<h:outputText value="C&oacute;digo del documento: " />
				<h:inputText value="#{documentosBM.codDocumentoString}"
					id="outCodDocCD" disabled="true" />

			</h:panelGrid>
			
			<h:panelGrid columns="4">
			<h:outputLabel value="" />
			</h:panelGrid>
			<table width="100%" border="1">
				<tr>
					<td width="40%">
						<div align="center">
							<p:fileUpload label="Examinar..."
								description="Archivos *.docx;*.doc;" customUI="true"
								fileUploadListener="#{documentosBM.accionFileUpload22}"
								update="editorTxt" immediate="true"
								multiple="true" image="/images/browse.png"
								>
							</p:fileUpload>
						</div></td>
					<td width="60%">
						<h:dataTable ></h:dataTable>
					
					</td>
				</tr>

			</table>

		</p:panel>





		<p:panel id="editorTxt">
			<div align="center">
				<p:editor value="#{documentosBM.value}" widgetVar="editor"
					width="800" height="100" />

				<h:panelGrid columns="4" style="margin-top:10px">
					<p:commandButton type="button" value="Firma digital" />
					<p:commandButton oncomplete="dlgCD.show()"
						image="ui-icon ui-icon-search" title="Vista Preliminar"
						update="displayDI" value="Vista Preliminar" />
					<p:commandButton value="Enviar" image="ui-icon ui-icon-disk"
						action="#{documentosBM.enviarDocumentoUsuario}" update="growl"
						ajax="false" />
					<p:commandButton type="button" value="Clear"
						onclick="editor.clear()" image="ui-icon ui-icon-close" />
				</h:panelGrid>
			</div>
		</p:panel>
	</h:form>

	</ui:define>
</ui:composition>